﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CommentList.aspx.cs" Inherits="Manage_Cms_CommentList" %>

<html>
<head>
    <!--#include file="../js/html_head.inc"-->
    <link rel="stylesheet" type="text/css" href="../Themes/<%=ManageHelper.GetTheme()%>/style.css" />
</head>
<body>
    <%=ManageHelper.PageSucMsg()!=""?"<div class='msg_succeed'>"+ManageHelper.PageSucMsg()+"</div>":""%>
    <div class="mycolumn">
        <div class="columntitle">
            评论搜索</div>
        <form action="?">
            <table width="100%" border="0" align="center" cellpadding="2" cellspacing="2">
                <tbody>
                    <tr class="summary-title" align="left">
                        <td align="left" style="padding-left: 10px; line-height: 26px;" class="tdsearch">
                            系统应用程序： 
                            <select name="AppID">
                                <%=KeRui.BLL.Common.GetSelectList(AppID, bllSysApp.GetSelect())%>
                            </select>
                            　站点：
                            <select name="SiteID">
                                <%=KeRui.BLL.Common.GetSelectList(SiteID,bllCmsSite.GetCmsSiteChk()) %>
                            </select>
                            　　<input type="submit" value="搜 索" class="button" style="margin-bottom: 0px;width:60px;" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </form>
    </div>
    <div class="column">
        <div class="columntitle">
            评论列表</div>
        <table cellspacing="1" cellpadding="3" rules="all" align="center" border="0" 
            style="border-width: 0px; width: 100%; border-collapse: collapse;">
            <tr class="summary-title" align="center" style="height: 25px;">
                <td width="30">ID</td>
                <td>评论人</td>
                <td>评论内容</td>
                <td style="width:120px;">IP</td>
                <td style="width:140px;">添加时间</td>
                <td style="width:60px;">操作</td>
            </tr>
            <%int i = 0; foreach (KeRui.Model.CmsComment model in listCmsComment)
              {
                  i++;%>
            <tr class="tdbg" style="height: 25px;" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';" >
                <td align="center">
                    <%=i%>
                </td>
                <td align="left" style="width: 130px;">
                    <%=model.UserID == -1 || model.UserID == 0 ? "<font style=\"color:" + (model.QuoteID != "" && model.QuoteID != null ? "" : "") + "\">"+"[<font style=\"color:#999999\">匿名</font>] " + model.Username + "</font>" : model.Username%>
                </td>
                <td>
                    <%=model.Content%>
                </td>
                <td align="center" >
                    <%=model.CreateIP%>
                </td>
                <td align="center" >
                    <%=model.CreateTime%>
                </td>
                <td align="center" >
                    <a href='CommentList.aspx?id=<%=model.CommentID %>&act=del' onclick="javascript:return confirm('此操作将会删除评论“<%=model.Username %>”，确认吗？');">删除</a>
                </td>
            </tr>
            <%}%>
        </table>
    </div>
        <%=PageShow %>

</body>
</html>